import { createApp } from 'vue'
import App from './App.vue'
// 引入Vue-router 路由器
import router from "@/router/index.js"

// 引入 Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App)
app.use(router)
app.use(ElementPlus)


// 全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component);
}

app.mount('#app')